

import { createApp } from 'vue'
import { createPinia } from 'pinia'


import App from './App.vue'
import router from './router'
import axios from 'axios'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

 


const app = createApp(App)
axios.defaults.baseURL = '/api'  
axios.defaults.withCredentials = true// Cookie跨域

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
// app.use(axios)
app.use(router)
app.use(ElementPlus)
app.use(pinia)
app.mount('#app')
